package com.api.demo.service;

import com.api.demo.dto.CommentRequest;
import com.api.demo.entity.Comment;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public interface CommentService {
    Comment createComment(Long contentId, CommentRequest request, Long userId);
    Comment replyComment(Long contentId, Long commentId, CommentRequest request, Long userId);
    IPage<Comment> getCommentList(Long contentId, Page<Comment> page,Long UserId);
    void likeComment(Long commentId, Long userId);
    void unlikeComment(Long commentId, Long userId);
    void deleteComment(Long commentId, Long userId);
} 